package scct.ZhuZhouXing.model;

public class Product {

    private int pid;//商品编号
    private String pname;//商品名称
    private int pprice;//商品价格
    private int pinventory;//商品数量
    private String pleibie;//商品种类
    private String pbrief;//商品简介

    public Product() {
    }

    public Product(int pid, String pname, int pprice, int pinventory, String pleibie, String pbrief) {
        this.pid = pid;
        this.pname = pname;
        this.pprice = pprice;
        this.pinventory = pinventory;
        this.pleibie = pleibie;
        this.pbrief = pbrief;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public int getPprice() {
        return pprice;
    }

    public void setPprice(int pprice) {
        this.pprice = pprice;
    }

    public int getPinventory() {
        return pinventory;
    }

    public void setPinventory(int pinventory) {
        this.pinventory = pinventory;
    }

    public String getPleibie() {
        return pleibie;
    }

    public void setPleibie(String pleibie) {
        this.pleibie = pleibie;
    }

    public String getPbrief() {
        return pbrief;
    }

    public void setPbrief(String pbrief) {
        this.pbrief = pbrief;
    }

    @Override
    public String toString() {
        return "Product{" +
                "pid=" + pid +
                ", pname='" + pname + '\'' +
                ", pprice=" + pprice +
                ", pinventory=" + pinventory +
                ", pleibie='" + pleibie + '\'' +
                ", pbrief='" + pbrief + '\'' +
                '}';
    }
}





